package com.xdtech.restful.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@Scope("prototype")
public class RestfulApiController {
	@RequestMapping("/api")
	public ModelAndView api(HttpServletRequest request) {
		return new ModelAndView("restful/index_ftl");
	}
	
	@RequestMapping("/test")
	public ModelAndView test(HttpServletRequest request) {
		return new ModelAndView("restful/index_ftl");
	}
}
